package com.linzt.candy.wxmp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.linzt.candy.wxmp.domain.WxMpInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author linzt
 * @Date 2020/12/207:08 下午
 * @Description 微信公众号Mapper
 * @Version 1.0
 */
public interface WxMpInfoMapper extends BaseMapper<WxMpInfo> {

    /**
     * 根绝Appid查找微信公众号信息
     *
     * @param appId
     * @return
     */
    @Select("select * from tb_wx_mp where app_id=#{appId}")
    WxMpInfo findByAppId(@Param("appId") String appId);

    List<WxMpInfo> selectWxMpForPage(IPage<WxMpInfo> page);
}
